package com.advert.config;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "config")
@XmlAccessorType(XmlAccessType.FIELD)
public class Config {
    private int minPasswordLength;
    private int advertsToDisplay;
    private int photoQuantity;

    @XmlElement(name = "mail")
    private MailConfig mailConfig;

    @XmlElement(name = "image")
    private ImageConfig imageConfig;



    public int getMinPasswordLength() {
        return minPasswordLength;
    }

    public int getAdvertsToDisplay() {
        return advertsToDisplay;
    }

    public int getPhotoQuantity() {
        return photoQuantity;
    }

    public MailConfig getMailConfig() {
        return mailConfig;
    }

    public ImageConfig getImageConfig() {
        return imageConfig;
    }
}
